//
//  XLCycleScrollView.h
//  CycleScrollViewDemo
//
//  Created by xie liang on 9/14/12.
//  Copyright (c) 2012 xie liang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class WSCycleScrollView;

@protocol WSCycleScrollViewDatasource <NSObject>

@required
- (NSInteger)numberOfPages;
- (UIView *)pageAtIndex:(NSInteger)index;

@end

@protocol WSCycleScrollViewDelegate <NSObject>

@optional
- (void)didClickPage:(WSCycleScrollView *)csView atIndex:(NSInteger)index;

@end

@interface WSCycleScrollView : UIView

@property (nonatomic, weak) id<WSCycleScrollViewDatasource> dataSource;
@property (nonatomic, weak) id<WSCycleScrollViewDelegate> delegate;
@property (nonatomic, strong) NSMutableArray * picArray;

- (void)startCycle;
- (void)stopCycle;
- (void)reloadData;

@end
